package notice

import (
	"github.com/gin-gonic/gin"
	apis "vrcm/src/vrcm/app/admin/apis/notice"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerNoticeRouter)
}

// registerNoticeRouter
func registerNoticeRouter(v1 *gin.RouterGroup) {
	api := apis.Notice{}
	r := v1.Group("/notice")
	{
		r.POST("/insert", api.Insert)
		r.POST("/delete", api.Delete)
		r.POST("/get-notice", api.GetNotice)
	}
}
